package compsup;

import java.util.Collection;

import user.User;

import company.Company;

import degree.Degree;
import descriptor.CompanySupDescriptor;


public interface CompanySup extends javax.ejb.EJBLocalObject{

	// <ATTRIBUTES>
	
	// simple attributes
	public int getId();
	public void setId(int id);
	
	public String getLogin();
	public void setLogin(String login);
	
	public String getPassword();
	public void setPassword(String password);
	
	public String getFirstname();
	public void setFirstname(String firstname);
	
	public String getSurname();
	public void setSurname(String surname);
	
	public String getEmail();
	public void setEmail(String email);
	
	// Bean attributes
	// relations 1-1
	public User getUser();
	public void setUser(User user);
	
	public Company getCompany();
	public void setCompany(Company company);

	
	// relation 1-many
	public Collection getStudents();
	public void setStudents(Collection students);
	
	public Collection getDegrees();
	public void setDegrees(Collection degrees);
	
	// </ATTRIBUTES>
	
	// <METHODS>
	public CompanySupDescriptor toCompanySupDescriptor();
	public CompanySupDescriptor toSimpleCompanySupDescriptor();
	// </METHODS>
	
	
}

